package com.lechuang.user.controller;


import cn.hutool.json.JSONUtil;
import com.lechuang.common.result.Result;
import com.lechuang.user.entity.BankInfo;
import com.lechuang.user.manager.BankManager;
import com.lechuang.user.manager.UserManager;
import com.lechuang.user.vo.BankVo;
import com.lechuang.user.vo.UserVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/bank")
@Log4j2
@Tag(name = "银行信息类")
public class BankController {

    @Resource
    private BankManager bankManager;

    @Operation(summary = "查询银行信息")
    @GetMapping("/queryList")
    public Result<List<BankVo>> queryList(){
        log.info("银行信息查询--");
        List<BankVo> bankVoList = bankManager.queryList();
        return Result.success(bankVoList);
    }
}
